package com.jpx.jxcbiz.web;


import com.alibaba.fastjson.JSON;
import com.jpx.jxc.common.vo.ResultEntity;
import com.jpx.jxcbiz.service.ITGoodstypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zyy
 * @since 2020-02-24
 */
@RestController
@RequestMapping("/biz/tGoodstype")
@Slf4j
public class TGoodstypeController {

    @Autowired
    ITGoodstypeService goodstypeService;

    @RequestMapping("/getTypeList")
    public ResultEntity getTypeList(){
        List list = goodstypeService.getTypeList();
        log.info(JSON.toJSONString(list));
        return ResultEntity.ok(list);
    }
}
